﻿$(document).ready(function () {
    GetTinTucSame();
});

//Lấy danh sách tin tức cùng  kiểu chuyên mục
function GetTinTucSame() {
    $("#loader").show();
    $.ajax({
        type: "POST",
        url: "/Default.aspx/fncLoadTinTucSame",
        data: "{strChuyenMuc: '" + strChuyenMuc + "'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (response) {
            var Data = response.d;
            $("#sameNews").append(Data);
            $("#loader").hide();
        },
        failure: function (response) {
            //alert("failure: " + response.d);
        },
        error: function (response) {
            //alert("error: " + response.d);
        }
    });
}